<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/Peanut',
    'namespace'     => 'Beerus\\Modules\\Peanut\\Controllers',
    'middleware'    => ['web', 'admin'],
], function (Router $router) {
    $router->get('/index','IndexController@index');  //返佣链接列表管理
    $router->get('/history','IndexController@history');  //返佣excel上传以及记录
    $router->get('/downloadTemplate','IndexController@downloadTemplate'); //导入模板下载
    $router->post('/uploadFile','IndexController@uploadFile'); //excel上传
    $router->get('/index/create','IndexController@create');  //返佣链接单个新增
    $router->post('/save','IndexController@save');  //excel上传保存
    $router->get('/exportData','IndexController@exportData');  //返佣链接列表筛选导出

    $router->get('/designer/list','DesignerController@index'); //带货设计师列表
    $router->get('/designer/list/create','DesignerController@edit');  //新增带货设计师
    $router->get('/designer/list/{id}/edit','DesignerController@edit');  //编辑带货设计师
    $router->post('/designer/save','DesignerController@save');  //保存带货设计师
    $router->delete('/designer/list/{id}', 'DesignerController@del');//删除带货设计师

    $router->get('/Transfer', 'TransferController@index'); // 返佣转账列表
    $router->get('/Transfer/Show/{uid}/{params}', 'TransferController@show');
    $router->post('/Transfer/Operate', 'TransferController@operate'); // 修改转账状态
    $router->post('/Transfer/OperateBatch', 'TransferController@operateBatch'); // 批量修改转账状态
    $router->get('/Transfer/Record', 'TransferController@transferRecord'); // 转账记录列表

});